<?php
include '../../../wp-load.php';
get_currentuserinfo();
global $user_level;
if($user_level == 10) {

}
else{
	$url = get_option('siteurl') . '/wp-login.php?action=logout';
	header("Location: $url");exit();
}
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
		<html xmlns='http://www.w3.org/1999/xhtml' <?php language_attributes(); ?>>

	<head profile='http://gmpg.org/xfn/11'>	
		<link media="all" type="text/css" href="<?php bloginfo('template_url'); ?>/css/shop_admin.css" rel="stylesheet"></link>
	<title>eGoods :: Shop-Backend :: Statistics</title>
	</head>
	<body class="wp-admin">
	<div id="wpwrap">
	<div id="wpcontent">
	<div id="wphead">
	
	<h1>eGoods :: Statistics			
		<span id="viewsite"><a href='<?php bloginfo('url') ?>/wp-admin/themes.php?page=functions.php'>back to Wordpress-Admin</a></span>
	</h1>
	</div>
	<div id="wpbody">
		<div class="wrap">

	<?php 
	$currency = get_option('wps_currency_code');
	
	echo "<h4>Sales in $currency :: Development last 12 months</h4>";	
	echo "<br/><br/>";
	
	$txt_color 	= 'black';
	$row_height	= '70px';
	
	echo graph_monthly_sales($row_height,$txt_color);
	
	echo "</div></div></div></div></body></html>";
?>